import 'package:mr_camera/model/UserDetail.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'mr_camera_method_channel.dart';

abstract class MrCameraPlatform extends PlatformInterface {
  /// Constructs a MrCameraPlatform.
  MrCameraPlatform() : super(token: _token);

  static final Object _token = Object();

  static MrCameraPlatform _instance = MethodChannelMrCamera();

  /// The default instance of [MrCameraPlatform] to use.
  ///
  /// Defaults to [MethodChannelMrCamera].
  static MrCameraPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [MrCameraPlatform] when
  /// they register themselves.
  static set instance(MrCameraPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<void> startScanService() {
    throw UnimplementedError('startScanService() has not been implemented.');
  }

  Future<void> stopScanService() {
    throw UnimplementedError('stopScanService() has not been implemented.');
  }

  Future<bool> isScanServiceRunning() {
    throw UnimplementedError('isScanServiceRunning() has not been implemented.');
  }

  Future<String> startClientActivity(UserDetail userDetail, String snapshotFilePath) {
    throw UnimplementedError('startClientActivity() has not been implemented.');
  }

  Future<int> getIpCamCount() {
    throw UnimplementedError('getIpCamCount() has not been implemented.');
  }

  Future<void> rediscoverCameras() {
    throw UnimplementedError('rediscoverCameras() has not been implemented.');
  }

}
